import Vue from 'vue'
import Router from 'vue-router'
import First from '../components/First.vue'
import Application from '../components/Application.vue'
import Login from '../components/Login.vue'
import Index from '../components/Index.vue'
import CarportManage from '../components/CarportManage.vue'
import CarManage from '../components/CarManage.vue'
import OrderManage from '../components/OrderManage.vue'
import SystemManage from '../components/SystemManage.vue'
import RentersLogin from '../components/RentersLogin.vue'
import PlatformLogin from '../components/PlatformLogin.vue'
import UserLogin from '../components/UserLogin.vue'
import UserRegister from '../components/UserRegister.vue'
import PlatformRegister from '../components/PlatformRegister.vue'
import RentersRegister from '../components/RentersRegister.vue'
import UserPhoneLogin from '../components/UserPhoneLogin.vue'
import RentersPhoneLogin from '../components/RentersPhoneLogin.vue'
import UserIndex from '../components/UserIndex.vue'
import UserInfoIdCard from '../components/UserInfoIdCard.vue'
import UserInfo from '../components/UserInfo.vue'
import RentersIndex from '../components/RentersIndex.vue'
import RentersInfoIdCard from '../components/RentersInfoIdCard.vue'
import RentersInfo from '../components/RentersInfo.vue'
import PlatformIndex from '../components/PlatformIndex.vue'
import PlatformBidAdmin from '../components/PlatformBidAdmin.vue'
import PlatformLoadAllAdmin from '../components/PlatformLoadAllAdmin.vue'
import PassAllAppLication from '../components/PassAllAppLication.vue'
import RentersCarcerApply from '../components/RentersCarcerApply.vue'
import RentersCarinfo from '../components/RentersCarinfo.vue'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    component: First
  },
  {
    path: '/First',
    component: First,
  },
  {
    path: '/UserPhoneLogin',
    component: UserPhoneLogin,
  },
  {
    path: '/RentersPhoneLogin',
    component: RentersPhoneLogin,
  },
  {
    path: '/UserRegister',
    component: UserRegister,
  },
  {
    path: '/PlatformRegister',
    component: PlatformRegister,
  },
  {
    path: '/RentersRegister',
    component: RentersRegister,
  },
  {
    path: '/RentersLogin',
    component: RentersLogin,
  },
  {
    path: '/PlatformLogin',
    component: PlatformLogin,
  },
  {
    path: '/UserLogin',
    component: UserLogin,
  },
  {
    path: '/Application',
    component: Application
  },
  {
    path: '/Login',
    component: Login
  },

  
  {
    path: '/PlatformIndex',
    component: PlatformIndex,
    children:[
      {
        path: '/PlatformBidAdmin',
        component: PlatformBidAdmin
      },
      {
        path: '/PlatformLoadAllAdmin',
        component: PlatformLoadAllAdmin
      },    
      {
        path: '/PassAllAppLication',
        component: PassAllAppLication
      },  
    ]
  },
  {
    path: '/RentersIndex',
    component: RentersIndex,
    children:[
      {
        path: '/RentersInfoIdCard',
        component: RentersInfoIdCard
      },
      {
        path: '/RentersInfo',
        component: RentersInfo
      },
      {
        path: '/RentersCarcerApply',
        component: RentersCarcerApply
      },
      {
        path: '/RentersCarinfo',
        component: RentersCarinfo
      },
      
    ]
    
  },

  {
    path: '/UserIndex',
    component: UserIndex,
    children:[
      {
        path: '/UserInfoIdCard',
        component: UserInfoIdCard
      },
      {
        path: '/UserInfo',
        component: UserInfo
      },
      
    ]
  },
  {
    path: '/Index',
    component: Index,
    children:[
      {
        path: '/CarportManage',
        component: CarportManage
      },
      {
        path: '/CarManage',
        component: CarManage
      },
      {
        path: '/OrderManage',
        component: OrderManage
      },
      {
        path: '/SystemManage',
        component: SystemManage
      }
    ]
  }

  ]
})
